import request from '@/utils/request'

// 查询业务消息通知列表
export function listMessageInfo(query) {
  return request({
    url: '/base/messageInfo/list',
    method: 'get',
    params: query
  })
}

// 查询业务消息通知详细
export function getMessageInfo(mId) {
  return request({
    url: '/base/messageInfo/' + mId,
    method: 'get'
  })
}

// 新增业务消息通知
export function addMessageInfo(data) {
  return request({
    url: '/base/messageInfo',
    method: 'post',
    data: data
  })
}

// 修改业务消息通知
export function updateMessageInfo(data) {
  return request({
    url: '/base/messageInfo',
    method: 'put',
    data: data
  })
}

// 删除业务消息通知
export function delMessageInfo(mId) {
  return request({
    url: '/base/messageInfo/' + mId,
    method: 'delete'
  })
}
